<? error_reporting('NONE');
   ob_start();
   include ("../config.php"); 
   define ("PREFIX",$prefix);
  if (!isset($HTTP_GET_VARS['fid'])) $fid="0"; else $fid=$HTTP_GET_VARS['fid'];
  if (!$result=mysql_db_query(DBNAME, "select EXT from ".PREFIX."FILES where ID=$fid")) 
  $s="Error update pic<br>"; else
  while ($row = mysql_fetch_row($result)) $ext=$row[0];
  if (!$result=mysql_db_query(DBNAME, "update ".PREFIX."FILES set LCOL=LCOL+1 where ID=$fid")) 
  $s="Error update pic<br>";
  $url=BASE."files/".$fid.".".$ext;

  header("Location: $url");
?>